package egovframework.nanum.portal.util;

import javax.annotation.PostConstruct;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;

import com.nanum.portal.cnfg.common.configuration.UploadRegistry;

/**
 * Desc : ABC Config
 * FileName : AbcConfig.java
 * ClassName : AbcConfig
 * Date : 2013. 1. 14.
 * Author : leechanwoo
 */
@Configuration
@PropertySource({"classpath:abc.properties", "classpath:application-context.properties"})
public class AbcConfig {

	@Autowired
	private Environment environment;

	private UploadRegistry upload;
	
	@PostConstruct
	public void initialize() {
		this.upload = new UploadRegistry(this.environment);
	}
	
	public String getProperty(String key) {
		return getEnvironment().getProperty(key);
	}

}
